Integrand size = 24, antiderivative size = 31 \[ \int \frac {\sec ^3(c+d x)}{a+i a \tan (c+d x)} \, dx=\frac {\text {arctanh}(\sin (c+d x))}{a d}-\frac {i \sec (c+d x)}{a d} \]
[Out]
Time = 0.07 (sec) , antiderivative size = 31, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {3582, 3855} \[ \int \frac {\sec ^3(c+d x)}{a+i a \tan (c+d x)} \, dx=\frac {\text {arctanh}(\sin (c+d x))}{a d}-\frac {i \sec (c+d x)}{a d} \]
[In]
[Out]
Rule 3582
Rule 3855
Rubi steps \begin{align*} \text {integral}& = -\frac {i \sec (c+d x)}{a d}+\frac {\int \sec (c+d x) \, dx}{a} \\ & = \frac {\text {arctanh}(\sin (c+d x))}{a d}-\frac {i \sec (c+d x)}{a d} \\ \end{align*}
Time = 0.44 (sec) , antiderivative size = 34, normalized size of antiderivative = 1.10 \[ \int \frac {\sec ^3(c+d x)}{a+i a \tan (c+d x)} \, dx=\frac {2 \text {arctanh}\left (\sin (c)+\cos (c) \tan \left (\frac {d x}{2}\right )\right )-i \sec (c+d x)}{a d} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 69 vs. \(2 (30 ) = 60\).
Time = 1.19 (sec) , antiderivative size = 70, normalized size of antiderivative = 2.26
method | result | size |
derivativedivides | \(\frac {-\frac {i}{\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1}+\ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )+\frac {2 i}{2 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )-2}-\ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}{a d}\) | \(70\) |
default | \(\frac {-\frac {i}{\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1}+\ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )+\frac {2 i}{2 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )-2}-\ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}{a d}\) | \(70\) |
risch | \(-\frac {2 i {\mathrm e}^{i \left (d x +c \right )}}{d a \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )}-\frac {\ln \left ({\mathrm e}^{i \left (d x +c \right )}-i\right )}{a d}+\frac {\ln \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )}{a d}\) | \(74\) |
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 80 vs. \(2 (29) = 58\).
Time = 0.24 (sec) , antiderivative size = 80, normalized size of antiderivative = 2.58 \[ \int \frac {\sec ^3(c+d x)}{a+i a \tan (c+d x)} \, dx=\frac {{\left (e^{\left (2 i \, d x + 2 i \, c\right )} + 1\right )} \log \left (e^{\left (i \, d x + i \, c\right )} + i\right ) - {\left (e^{\left (2 i \, d x + 2 i \, c\right )} + 1\right )} \log \left (e^{\left (i \, d x + i \, c\right )} - i\right ) - 2 i \, e^{\left (i \, d x + i \, c\right )}}{a d e^{\left (2 i \, d x + 2 i \, c\right )} + a d} \]
[In]
[Out]
\[ \int \frac {\sec ^3(c+d x)}{a+i a \tan (c+d x)} \, dx=- \frac {i \int \frac {\sec ^{3}{\left (c + d x \right )}}{\tan {\left (c + d x \right )} - i}\, dx}{a} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 83 vs. \(2 (29) = 58\).
Time = 0.37 (sec) , antiderivative size = 83, normalized size of antiderivative = 2.68 \[ \int \frac {\sec ^3(c+d x)}{a+i a \tan (c+d x)} \, dx=\frac {\frac {\log \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + 1\right )}{a} - \frac {\log \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - 1\right )}{a} - \frac {2}{-i \, a + \frac {i \, a \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}}}}{d} \]
[In]
[Out]
none
Time = 0.39 (sec) , antiderivative size = 58, normalized size of antiderivative = 1.87 \[ \int \frac {\sec ^3(c+d x)}{a+i a \tan (c+d x)} \, dx=\frac {\frac {\log \left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1\right )}{a} - \frac {\log \left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 1\right )}{a} + \frac {2 i}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right )} a}}{d} \]
[In]
[Out]
Time = 4.11 (sec) , antiderivative size = 43, normalized size of antiderivative = 1.39 \[ \int \frac {\sec ^3(c+d x)}{a+i a \tan (c+d x)} \, dx=\frac {2\,\mathrm {atanh}\left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}{a\,d}+\frac {2{}\mathrm {i}}{a\,d\,\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2-1\right )} \]
[In]
[Out]